<%= form_for [:admin, @shop_category, @shop_category_brand], html: { class: "card" } do |f| %>
  <div class="card-body">
    <h3 class="card-title">分类《<%= @shop_category.name %>》关联品牌</h3>
    <div class="row">
      <div class="col-md-12">
        <div class="form-group">
          <label class="form-label">品牌</label>
          <%= f.select :brand_id, Brand.select('id, name').map{ |c| [c.name, c.id] }, { include_blank: '请选择品牌' }, { class: 'form-control select' } %>
        </div>
      </div>
    </div>
  </div>
  <div class="card-footer text-right">
    <button type="submit" class="btn btn-primary">保 存</button>
  </div>
<% end %>